﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PingPongMain
{
    public class Coords
    {
        public int Row { get; set; }
        public int Col { get; set; }

        public Coords(int row, int col)
        {
            this.Row = row;
            this.Col = col;
        }

        public override bool Equals(object obj)
        {
            Coords objAsCoords = obj as Coords;
            return objAsCoords.Row == this.Row && objAsCoords.Col == this.Col;
        }
        public override int GetHashCode()
        {
            return this.Col.GetHashCode() * 5 + this.Row.GetHashCode();
        }
    }
}
